package com.groupsix.mapper;

import com.groupsix.entity.Admin;
import com.groupsix.entity.AdminExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;



public interface AdminMapper {
    /**
     * 通过账号和密码查询管理员
     */
    public Admin findAdmin(Admin admin);

    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("aUsername") String aUsername, @Param("aDescribe") String aDescribe, @Param("aId") Integer aId);
    //获取用户列表
    public List<Admin> getAdminList(@Param("aUsername") String aUsername, @Param("aDescribe") String aDescribe, @Param("aId") Integer aId, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);
    //添加管理员信息
    public int addAdmin(Admin admin);
    //删除管理员信息
    public int deleteAdmin(Integer aid);
    //修改管理员信息
    public int updateAdmin(Admin admin);
    //通过id查询管理员
    public Admin findAdminById(Integer aId);
    public List<Admin> getAll();



    int countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Integer aId);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Integer aId);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}